package org.example;

public class Main {
    public static void main(String[] args) {
        MiniApplicationContext context = new MiniApplicationContext();
        context.loadBeans("src\\main\\resources\\applicationContext.xml");

        YourBeanClass yourBean = (YourBeanClass) context.getBean("yourBean");
        yourBean.doSomething();

        // 销毁容器中的 Bean
        context.destroyBeans();
    }
}
